#!/usr/bin/env python3
# -*- coding: utf-8 -*-

"""
@AUTHOR: tyc
@VERSION: 1.0.0
@DESCRIPTION: 
@time: 2021-07-04 18:44:35 
"""
import time
from multiprocessing import Process


def fun():
    for i in range(10):
        time.sleep(0.3)
        print(f'子进程：{i}')


if __name__ == '__main__':
    p = Process(target=fun)
    p.start()
    for i in range(10):
        time.sleep(0.5)
        print(f'主进程：：{i}')
